//
//  BKGDAction.m
//  bestkeep
//
//  Created by 武探 on 2016/11/10.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BKGDAction.h"
#import "BKGDManagerViewController.h"

@implementation BKGDAction

-(UIViewController *)goodsDetailViewController:(NSDictionary<NSString *,id> *)parameters {
    
    NSString *goodsId = parameters[@"goodsId"];
    NSString *saleTypes = parameters[@"saleTypes"];
    
    NSString *storeId = parameters[@"storeId"] ? parameters[@"storeId"] : @"";
    NSString *shopKeeper = parameters[@"shopKeeper"] ? parameters[@"shopKeeper"] : @"";
    
    NSString *goodsCoverImg = parameters[@"goodsCoverImg"] ? parameters[@"goodsCoverImg"] : @"";

    BKGDManagerViewController *controller = [[BKGDManagerViewController alloc] init];
    controller.goodsId = goodsId;
    controller.saleTypes = saleTypes;
    
    controller.storeId = storeId;
    controller.shopKeeper = shopKeeper;
    
    controller.goodsCoverImg = goodsCoverImg;
    
    return controller;
}

@end
